<%@ page contentType="text/html;charset=UTF-8" %>
<%@taglib prefix="t" tagdir="/WEB-INF/tags" %>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<t:template>
	<jsp:attribute name="http_header">
		<title>${pageTitle}</title>	
		<%@include file="/WEB-INF/includes/http-header.jsp" %>	
	</jsp:attribute>
	
	<jsp:attribute name="header">
		<%@include file="/WEB-INF/includes/header.jsp" %>	
	</jsp:attribute>
	
	<jsp:attribute name="left_content">
		<%@include file="/WEB-INF/includes/left-menu.jsp" %>	
	</jsp:attribute>
	
	<jsp:attribute name="right_content">
		<h2>LỊCH SỬ GIÁ SẢN PHẨM/DỊCH VỤ TRONG PHÒNG</h2>
		
		<div style="padding:5px;background-color:#EEEBE1;">
			<form:form action="search-product-in-room-price-history.html" method="POST" id="searchForm">
				<table>
					<tr>
						<td class="catalog1">
							Sản phẩm
						</td>
						<td class="catalog2">							
							<form:select path="productId" cssClass="big-combobox combobox">																
								<form:option value="">Tất cả</form:option>
								<form:options items="${productList}" />
							</form:select>
						</td>						
						<td class="catalog1">
							<div>
								<input type="checkbox" name="onlyNewPrice" />								
	        					<label for="onlyNewPrice" style="vertical-align:text-top;">Chỉ lấy giá mới nhất</label>
        					</div>
						</td>
						<td class="catalog1">
							<a href="javascript:void" class="buttonCollapse">LẤY DANH SÁCH</a>
						</td>						
					</tr>								
				</table>
			</form:form>
			
			
		</div>
		
		<script type="text/javascript">
			$("#searchForm a.buttonCollapse").click(function(){
				$("#searchForm").submit();
			});
		
			$(".combobox").chosen({no_results_text: "Không có"});	
		</script>
	</jsp:attribute>
	
	<jsp:attribute name="footer">
		<%@include file="/WEB-INF/includes/footer.jsp" %>
	</jsp:attribute>
	
</t:template>